package top.wyix.module.system.dal.mysql.oauth2;

import org.apache.ibatis.annotations.Mapper;
import top.wyix.framework.mybatis.core.mapper.BaseMapperX;
import top.wyix.module.system.dal.dataobject.oauth2.OAuth2CodeDO;

/**
 * @author wangdx
 */
@Mapper
public interface OAuth2CodeMapper extends BaseMapperX<OAuth2CodeDO> {
    default OAuth2CodeDO selectByCode(String code) {
        return selectOne(OAuth2CodeDO::getCode, code);
    }
}
